package com.example.day02;

// class = field(s) + method(s)
public class Human {

    Human() {}  // ?

//    com.example.day02.Human(String name) {
//        this.name = name;
//    }

//    com.example.day02.Human(String name, int age, char gender, double height, double weight, boolean isMarried) {
//        this.name = name;
//        this.age = age;
//        this.gender = gender;
//        this.height = height;
//        this.weight = weight;
//        this.isMarried = false;
//    }

    // Alt + Insert



    public Human(String name, char gender, int age, double height, double weight, boolean isMarried) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.height = height;
        this.weight = weight;
        this.isMarried = isMarried;
    }

    String name;
    char gender;
    int age;
    double height;
    double weight;
    boolean isMarried;


    void study(int hour) { //
        System.out.println(name + " study " + hour + " hour(s).");
        return;
    }

    int work(int hour) {
        return hour;
    }

    void walk() {
    }

    public static void main(String[] args) {
        int i;
        Human tom = new Human("Tom", 'M', 18, 1.7, 60, true); // Ctrl + P(parameters)
//        tom.name = "Tom";
//        tom.age = 18;
        tom.study(3);
        System.out.println(tom.work(1));
        System.out.println(tom.name); // null
        System.out.println((int) tom.gender); // 0
        System.out.println(tom.age); // 0
        System.out.println(tom.height); // 0.0
        System.out.println(tom.weight); // 0.0
        System.out.println(tom.isMarried); // false
    }
}
